package com.example.entity.mysql;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Resourcesub implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资源子表ID
     */
    @ApiModelProperty(value = "资源子表ID")
    @TableId(value = "resourceSubId", type = IdType.AUTO)
    @TableField("resourceSubId")
    private Integer resourceSubId;

    /**
     * 资源组ID（resourcegroup表中生产线资源的resourceGroupId）
     */
    @ApiModelProperty(value = "资源组ID（resourcegroup表中生产线资源的resourceGroupId）")
    @TableField("resourceGroupId")
    private Integer resourceGroupId;

    /**
     * 设备组/设备ID（resourcegroup表中设备资源的resourceGroupId）
     */
    @ApiModelProperty(value = "设备组/设备ID（resourcegroup表中设备资源的resourceGroupId）")
    @TableField("deviceResourceGroupId")
    private Integer deviceResourceGroupId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    @TableField("nums")
    private Integer nums;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    @ApiModelProperty(value = "设备组/设备编号")
    private String deviceResourceGroupNo;

    @TableField(exist = false)
    @ApiModelProperty(value = "设备组/设备名称")
    private String deviceResourceGroupName;
}
